//
//  Message.h
//  HCHK_iphone
//
//  Created by yilong zhang on 11-12-14.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#ifndef HCHK_iphone_Message_h
#define HCHK_iphone_Message_h

#define HEARTBEAT   1000

#define HOMETEST

#ifdef HOMETEST
//URL
/*#define URL_GETPRODUTS     @"http://192.168.1.107:9999/sxhck/sx_article/"
#define URL_FAVORITE       @"http://192.168.1.107:9999/sxhck/sx_article/"
#define URL_APPRAISAL      @"http://192.168.1.107:9999/sxhck/sx_article/"
#define URL_GETCOMMS       @"http://192.168.1.107:9999/sxhck/sx_article/"
#define URL_COMMENTARY     @"http://192.168.1.107:9999/sxhck/sx_article/"
#define URL_GETNEAREST     @"http://192.168.1.107:9999/sxhck/sx_near/"
#define URL_UPLOADIMAGE    @"http://192.168.1.107:9999/sxhck/sx_htmlupload/index/"
#define URL_UPLOADPRODUCT  @"http://192.168.1.107:9999/sxhck/sx_article/"
#define URL_GETUSER_INFO   @"http://192.168.1.107:9999/sxhck/sx_user/"

#define URL_HEATBEAT       @"http://192.168.1.107:9999/sxhck/sx_login/"
#define URL_LOGOUT         @"http://192.168.1.107:9999/sxhck/sx_out/"
#define URL_LOGIN          @"http://192.168.1.107:9999/sxhck/sx_login/"
#define URL_REGISTER       @"http://192.168.1.107:9999/sxhck/sx_reg/"  
#define URL_SEARCHFRIEND   @"http://192.168.1.107:9999/sxhck/sx_friend/"
#define URL_ADDFRIEND      @"http://192.168.1.107:9999/sxhck/sx_friend/"
#define URL_DELFRIEND      @"http://192.168.1.107:9999/sxhck/sx_friend/"
#define URL_MYFRIEND       @"http://192.168.1.107:9999/sxhck/sx_friend/"
#define URL_BIND           @"http://192.168.1.107:9999/sxhck/sx_bind/"*/

#define URL_GETPRODUTS          @"http://222.41.30.48:8080/sx_article/"
#define URL_FAVORITE            @"http://222.41.30.48:8080/sx_article/"
#define URL_APPRAISAL           @"http://222.41.30.48:8080/sx_article/"
#define URL_GETCOMMS            @"http://222.41.30.48:8080/sx_article/"
#define URL_COMMENTARY          @"http://222.41.30.48:8080/sx_article/"
#define URL_GETNEAREST          @"http://222.41.30.48:8080/sx_near/"
#define URL_UPLOADIMAGE         @"http://222.41.30.48:8080/sx_htmlupload/index/"
#define URL_UPLOADPRODUCT       @"http://222.41.30.48:8080/sx_article/"
#define URL_GETUSER_INFO        @"http://222.41.30.48:8080/sx_user/"
#define URL_GETMYUPLOAD         @"http://222.41.30.48:8080/sx_user/"//@"http://222.41.30.48:8080/sx_friend/"
#define URL_SEARCH              @"http://222.41.30.48:8080/sx_search_new/"
#define URL_SEARCH_SAMENAME     @"http://222.41.30.48.8080/sx_article/"
#define URL_GET_DRAFTS          @"http://222.41.30.48:8080/sx_article/"

#define URL_HEATBEAT            @"http://222.41.30.48:8080/sx_login/"
#define URL_LOGOUT              @"http://222.41.30.48:8080/sx_out/"
#define URL_LOGIN               @"http://222.41.30.48:8080/sx_login/"
#define URL_REGISTER            @"http://222.41.30.48:8080/sx_reg/"  
#define URL_SEARCHFRIEND        @"http://222.41.30.48:8080/sx_friend/"
#define URL_ADDFRIEND           @"http://222.41.30.48:8080/sx_friend/"
#define URL_DELFRIEND           @"http://222.41.30.48:8080/sx_friend/"
#define URL_MYFRIEND            @"http://222.41.30.48:8080/sx_friend/"
#define URL_BIND                @"http://222.41.30.48:8080/sxhck/sx_bind/"
#define URL_SWITCHCHANGE        @"http://222.41.30.48:8080/sx_option/"
#define URL_FINDPWD             @"http://222.41.30.48:8080/sx_repwd/"
#define URL_ATTENTION_PEOPLE    @"http://222.41.30.48:8080/sx_follow/"
#define URL_ATTENTION_FOOD      @"http://222.41.30.48:8080/sx_follow/"
#define URL_ATTENTION_ADDRESS   @"http://222.41.30.48:8080/sx_follow/"
#define URL_GET_ATTENTION       @"http://222.41.30.48:8080/sx_follow/"
#define URL_DELETE_ATTENTION    @"http://222.41.30.48:8080/sx_follow/"
#define URL_GET_ADDRESSATTENTION @"http://222.41.30.48:8080/sx_near/"
#define URL_STARS               @"http://222.41.30.48:8080/sx_setstar/"

#else
/*#define URL_GETPRODUTS     @"http://222.41.30.48:8080/sx_article/"
#define URL_FAVORITE       @"http://222.41.30.48:8080/sx_article/"
#define URL_APPRAISAL      @"http://222.41.30.48:8080/sx_article/"
#define URL_GETCOMMS       @"http://222.41.30.48:8080/sx_article/"
#define URL_COMMENTARY     @"http://222.41.30.48:8080/sx_article/"
#define URL_GETNEAREST     @"http://222.41.30.48:8080/sx_near/"
#define URL_UPLOADIMAGE    @"http://222.41.30.48:8080/sx_htmlupload/index/"
#define URL_UPLOADPRODUCT  @"http://222.41.30.48:8080/sx_article/"
#define URL_GETUSER_INFO   @"http://222.41.30.48:8080/sxhck/sx_user/"

#define URL_HEATBEAT       @"http://222.41.30.48:8080/sx_login/"
#define URL_LOGOUT         @"http://222.41.30.48:8080/sx_out/"
#define URL_LOGIN          @"http://222.41.30.48:8080/sx_login/"
#define URL_REGISTER       @"http://222.41.30.48:8080/sx_reg/"  
#define URL_SEARCHFRIEND   @"http://222.41.30.48:8080/sx_friend/"
#define URL_ADDFRIEND      @"http://222.41.30.48:8080/sx_friend/"
#define URL_DELFRIEND      @"http://222.41.30.48:8080/sx_friend/"
#define URL_MYFRIEND       @"http://222.41.30.48:8080/sx_friend/"
#define URL_BIND           @"http://222.41.30.48:8080/sxhck/sx_bind/"*/

#define URL_GETPRODUTS          @"http://websoft.name/sx_article/"
#define URL_FAVORITE            @"http://websoft.name/sx_article/"
#define URL_APPRAISAL           @"http://websoft.name/sx_article/"
#define URL_GETCOMMS            @"http://websoft.name/sx_article/"
#define URL_COMMENTARY          @"http://websoft.name/sx_article/"
#define URL_GETNEAREST          @"http://websoft.name/sx_near/"
#define URL_UPLOADIMAGE         @"http://websoft.name/sx_htmlupload/index/"
#define URL_UPLOADPRODUCT       @"http://222.41.30.48:8080/sx_friend/"
#define URL_GETUSER_INFO        @"http://websoft.name/sx_user/"
#define URL_SEARCH              @"http://websoft.name/sx_search/"

#define URL_HEATBEAT            @"http://websoft.name/sx_login/"
#define URL_LOGOUT              @"http://websoft.name/sx_out/"
#define URL_LOGIN               @"http://websoft.name/sx_login/"
#define URL_REGISTER            @"http://websoft.name/sx_reg/"  
#define URL_SEARCHFRIEND        @"http://websoft.name/sx_friend/"
#define URL_ADDFRIEND           @"http://websoft.name/sx_friend/"
#define URL_DELFRIEND           @"http://websoft.name/sx_friend/"
#define URL_MYFRIEND            @"http://websoft.name/sx_friend/"
#define URL_BIND                @"http://websoft.name/sxhck/sx_bind/"
#define URL_SWITCHCHANGE        @"http://websoft.name/sx_option/"
#define URL_FINDPWD             @"http://websoft.name/sx_repwd/"

#endif

//glob
#define SRV_REQUEST_TIMEOUT     @"101"
#define SRV_REQUEST_ERROR       @"102"

//product
#define SRV_LASTEST_PLIST       @"201"
#define SRV_NEAREST_PLIST       @"202"
#define SRV_BEST_PLIST          @"203"
#define SRV_FAVORITE            @"204"
#define SRV_UPLOADIMAGE         @"205"

//user
#define SRV_PUBLISHER_INFO      @"301"
#define SRV_LOGIN               @"302"
#define SRV_USERICON            @"307"
#define SRV_LOGOUT              @"303"
#define SRV_REGISTER            @"304"
#define SRV_USERFRDS            @"305"
#define SRV_FINDPWD             @"306"

//message
#define MSG_UPLOADIMAGE_RET     @"UploadImage"
#define MSG_UPLOADPRODUCT_RET   @"UploadProduct"
#define MSG_GETFRDS_RET         @"GetFrds"
#define MSG_GETPUBINFO_RET      @"GetPuberInfo"
#define MSG_HEARTBEAT_RET       @"HeatBeat"
#define MSG_CHANGESWITCH_RET    @"ChangeSwitch"

//network
#define MSG_NETWORK_STATE       @"NetworkState"

//location
#define MSG_LOCATION_RET        @"Location"
#define MSG_FINEME_RET          @"FindMe"
#define MSG_LOCATION_TIMEOUT    @"LocationTimeout"
#define MSG_BUFFER_NULL         @"BufferNone"

//operation
#define OP_GETNEWSET_PRODUCT    @"newest"
#define OP_GETNEARSET_PRODUCT   @"getNear"
#define OP_GETBEST_PRODUCT      @"getArticleindex"
#define OP_GETSEARCH_PRODUCT    @"search"
#define OP_GETSAMENAME_PRODUCT  @"getArticleName"
#define OP_GETUPLOAD_PRODUCT    @"show"
#define OP_GETFAVORITE_PRODUCT  @"getFavorites"
#define OP_GETMYFRIENDS         @"showfriend"
#define OP_ADD_ATTENTION        @"Add"
#define OP_DELETE_ATTENTION     @"Delete"
#define OP_GET_ATTENTION        @"Following"
#define OP_GET_ADDRESS_ATTENTION @"getNear"

//language
#define MSG_OSLANGUAGE_CHANGE   @"OSLanguageChange"

//app
#define MSG_APP_ACTIVE          @"AppActive"
#define MSG_APP_BACKUP          @"AppBackup"

//switch
#define MSG_SINA_SWITCH         @"SianSwitch"
#define MSG_QQ_SWITCH           @"QqSwitch"
#define MSG_RENREN_SWITCH       @"RenrenSwitch"

#endif
